package studio.raptor.dispatcher.server.dto;

/**
 * @author jack
 * @since 1.0
 */
public class Consumer {

  private String name;

  private String code;

  private Integer kindId;

  private Integer eventType;

  private String eventName;

  private boolean state;

  private boolean sort;


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public Integer getKindId() {
    return kindId;
  }

  public void setKindId(Integer kindId) {
    this.kindId = kindId;
  }

  public Integer getEventType() {
    return eventType;
  }

  public void setEventType(Integer eventType) {
    this.eventType = eventType;
  }

  public boolean isState() {
    return state;
  }

  public void setState(boolean state) {
    this.state = state;
  }

  public boolean isSort() {
    return sort;
  }

  public void setSort(boolean sort) {
    this.sort = sort;
  }

  public String getEventName() {
    return eventName;
  }

  public void setEventName(String eventName) {
    this.eventName = eventName;
  }

  @Override
  public String toString() {
    return "Consumer{" +
        "name='" + name + '\'' +
        ", code='" + code + '\'' +
        ", kindId=" + kindId +
        ", eventType=" + eventType +
        ", eventName='" + eventName + '\'' +
        ", state=" + state +
        ", sort=" + sort +
        '}';
  }
}
